package com.winchain.chainbill.risk.biz.ctr.controller;

import com.shell.bee.base.annotation.Logging;
import com.shell.bee.entity.mvc.RetMsg;
import com.shell.bee.mvc.controller.BaseController;
import com.shell.bee.persistence.model.PageLimit;
import com.winchain.chainbill.basic.cus.vo.BasCustomerVo;
import com.winchain.chainbill.risk.biz.ctr.service.BizCtrService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class BizCtrController extends BaseController {
	@Autowired
	BizCtrService bizCtrService;

	@RequestMapping
	@ResponseBody
	@Logging(module = "��������", methods = "��������������������")
	public List<BasCustomerVo> findCustomerCtrls(PageLimit limit, BasCustomerVo basCustomerVo) {
		return this.bizCtrService.findCustomerCtrls(limit, basCustomerVo);
	}

	@RequestMapping
	@ResponseBody
	@Logging(module = "��������", methods = "������������")
	public RetMsg updateBizCtr(String rlatId, String grpId, String code, String value) {
		this.bizCtrService.updateBizCtr(rlatId, grpId, code, value);
		return new RetMsg("success", false, "����������");
	}
}
